//
//  SVProgressHUD+CustomStyle.h
//  SVProgressHUD
//
//  Created by 蔡儒楠 on 2017/4/19.
//  Copyright © 2017年 DingliTech. All rights reserved.
//

#import "SVProgressHUD/SVProgressHUD.h"

typedef NS_ENUM(NSUInteger, SVProgressHudMaskResultIcon) {
    SV_Result_None = 0,  //成功图样
    SV_Result_Success,   //成功图样
    SV_Result_Error,     //失败图样
    SV_Result_Warning,   //警示图样
    SV_Result_CryFace,   //哭脸图样
};

typedef void (^SV_ShowHUDCompletion)(void);

@interface SVProgressHUD (CustomStyle)

/** 需要手动关闭 */
+ (void)showMessage:(NSString *)message;//不允许用户操作界面
+ (void)showMesaggeEnabledUserInteraction:(NSString *)message;//允许用户操作当前界面


/** 最长2秒后自动消失，可代替关闭功能作为替换 */
+ (void)showMessageSustain:(NSString *)message
                      mask:(SVProgressHudMaskResultIcon)maskType;

+ (void)showMessageSustain:(NSString *)message
                      mask:(SVProgressHudMaskResultIcon)maskType
                completion:(SV_ShowHUDCompletion)completedBlock;

/** 手动隐藏，无延迟动画 */
+ (void)hideHUD;

@end
